<template>
	<view class="container">
		<view class="status_bar">
			<view style="margin-left: 4%;" @tap="goBack()"><u-icon name="arrow-leftward" size='24' /></view>
			<view style="margin-left: -50upx; font-weight: bold;">公告详情</view>
			<view></view>
		</view>
		<view class="con-box">
			<view style="text-align: center;">{{dataList.title}}</view>
			<view class="time-box">{{dataList.update_time}}</view>
		</view>
		<view class="con-box1">
			<view style="padding: 20upx;">平台共受理4723举报</view>
			<view>
				<view>{{dataList.content}}</view>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				userId: uni.getStorageSync('userId') || '',
				dataList: {}
			}
		},
		onLoad(props) {
			console.log(props,'111')
			
			this.getBoardListDetail(props.id)
		},
		methods: {
			goBack() {
				uni.navigateBack({
					delta: 1
				});
			},
			getBoardListDetail(id) {
				uni.request({
					
					// url: this.$api.baseUrl + '/api/common/notice/fetch',
					url: this.$api.baseUrl + '/api/common/notice/get',
					header: {
						'content-type': 'application/json'
					},
					data: {
						id: id
					},
					method: 'POST',
					success: res => {
						console.log(res.data.data, 'res');
						// uni.hideLoading()
						if (res.data.code == 0) {
							this.dataList = res.data.data
			
						}
						console.log(this.list);
						// this.list = res.data;
					},
					fail: res => {
						console.log(res);
					}
			
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	// page {
	// 	background-color: #999;
	// }
	.status_bar {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-top: 50upx;
	}

	.status_bar,
	.head {
		background-color: #fff;
		height: 160upx;

		.face {
			width: 160upx;
			height: 160upx;
			border-radius: 10upx;
		}

		.info-name {
			font-size: 40upx;
			font-weight: bold;
		}

		.info-num {
			// width: 56upx;
			padding: 2upx 30upx;
			background: #f0f4f7;
			border-radius: 30upx;
			margin-top: 21upx;
		}

		.copybtns {
			color: #4457a4;
			margin-top: 21upx;
		}
	}

	.con-box {
		width: 92%;
		margin-left: 4%;
		background-color: #fff;
		// margin-top: 20upx;
		border-radius: 20upx;
		padding: 10upx 30upx;
		color: #2e2e2e;
		font-weight: bold;

		.time-box {
			text-align: center;
			color: #b5b5b5;
			margin-top: 20upx;
			font-weight: 300;
		}
	}
	.con-box1{
		width: 92%;
		margin-left: 4%;
	}
</style>